package string;
/**
 * boolean endsWith(String s)
 * 判断当前字符串是否以给定的字符串s结束的
 */
public class EndsWithDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        boolean ends=str.endsWith(".png");
        System.out.println(ends);//false
    }
}
